home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
commercial
/
inovatronics
/
candodemo
/
testdrivemanual
/
testdrive1.doc
< prev
next >
Wrap
Text File
|
1994-11-17
|
26KB
|
606 lines
**** CANDO TEST DRIVE #1
When you first start CanDo, your Card's default window is
low-resolution, 320 by 200, with 16 Colors. However, you can tell
CanDo to open a Window of any dimension and display mode supported by
the Amiga Operating System or you can simply tell it to use a standard
Picture as a background. When a picture window is used, CanDo will
automatically load and display the picture in your Card's Window and
set the color palette. You will use a picture window for this
example. Click the Window Icon on the main Panel.
See Picture "Images/WindowIcon"
This will display the Window Editor. Change the Window Title from
"Unnamed..." to "Test Drive 1"
See Picture "Images/WindowTitle"
Click on the Dimension Button.
See Picture "Images/Dimension"
This will display the Dimension Requester. This Requester allows
you to specify the Dimensions and the number of colors for your window
or you can specify a Picture. The Dimension and number of colors will
be determined by the picture.
The button entitled "Unnamed" below "Picture" indicates there is
not yet a Picture specified for the window. Click on the "Unnamed"
Button.
See Picture "Images/UnnamedPicture"
This will bring up CanDo's File Requester. The Title at the top
will say "Image Requester". The File field displays the selected File
Name. Select Backdrop1.PIC by clicking on it in the list of files.
Click on the Show Picture Button. This allows you to preview the
picture.
This picture is a simple brown rectangle with a black drop shadow.
This type of picture can be used for creating many kinds of attractive
applications. When you are ready to proceed, click anywhere on the
picture.
This will return you to the File Requester. When you Click Ok you
will return to the Dimension Requester. Notice the button, which said
"Unnamed", is now highlighted with the text "Backdrop1.Pic". This
verifies you now have a Picture window. Click Ok and return to the
Window Editor. You will explore the other aspects of the Window
Editor later. Click Ok. This will return you to the Main Panel and
display your new window. Click on the Screen Up/Down Button so you
can see more of your window.
See Picture "Images/UpDownIcon"
The picture you previewed should now be shown along with window
borders, a Close Button, and a window title of "Test Drive 1". This
is the canvas to which you will be adding various "Objects" while
learning about CanDo.
The first thing you will do is add a button to your window. On
the Main Panel, click on the Screen Up/Down Button to raise the Main
Panel, click on Add Icon and then click on the Button Icon.
See Picture "Images/AddIcon"
See Picture "Images/ButtonIcon"
A requester appears with a brief description, which will serve as
a reminder of what you need to do to add a button. The process for
defining the button area is to position a cross-hair pointer to where
you want the upper left corner; press and hold the left mouse button;
drag the pointer to the right and down; when the rectangle is the size
and shape you wish, release the mouse button.
Click Ok on the reminder requester. CanDo's Main Panel will
completely disappear. Your mouse pointer is now a cross-hair.
Notice a pair of numbers which follow the mouse pointer. These
numbers are the "Coordinates" of the current mouse position. The
first number is the horizontal position (distance from the left), and
the second number is the vertical position (distance from the top).
Position the cross-hairs where the coordinates will be near 90,50.
This will be near the upper left corner of the brown box.
Click and Hold the left mouse button. Notice the numbers with the
mouse button have changed to 1,1. These numbers represent the size of
the button area.
Drag the cross-hairs down and to the right about an inch in both
directions. When you release the mouse button, the Button Editor will
appear.
The default border for a button is a simple outline. This is
indicated by the text OUTLINE in the button below the "Border" title.
Click on the OUTLINE button.
See Picture "Images/OutlineBorder"
This will display the Border Requester. This requester contains
twelve border styles you can use. The title "Outline" is highlighted
indicating it is the currently selected border style. Click on the
Bevel style.
See Picture "Images/BevelBorder"
This will cause the title "Bevel", above the sample border, to
become highlighted. The Bevel style uses two colors. They can be any
color in the color palette. The colors in the palette are shown along
the bottom of the screen. Click on a couple of these colors. Notice
the color changes in the displayed borders. The color in the 1st
color selector (the TV looking box in the Border Requester) will
reflect the selected color. Click on White in the color palette. Now
Click on the 2nd Color Selector.
See Picture "Images/2ColorSelectors"
This will cause a black outline to appear around the 2nd Color
Selector. Click on various colors in the color palette and observe
the changes in the sample borders. Now Click on Black (3rd from left)
in the color palette. Look at the Bevel border example. This is the
natural appearance of the Bevel Style: a light shade on the top and
left, and a dark shade on the bottom and the right. Click on the Ok
Button.
This will bring you back to the Button Editor. Click Ok. This
will return you to the Main Panel and your window will now contain
your new button. Click on Browse.
Click on your newly created button. While in "Browse" Mode, you
can test your application. You have not told your button to do
anything yet, so it will simply change color when you click on it.
Click on the Edit Button.
See Picture "Images/BrowseIcon"
Notice both the Edit Button and the Design Button have become
highlighted. When you click on your button, while in "Design" mode,
you will automatically go to the Button Editor.
See Picture "Images/EditIcon"
You will be instructing your button to display a Text message when
you click and "Release" on it. CanDo allows you to define an action
for each of the Amiga supported actions for a button: Click, Drag,
Release, and DoubleClick. The Release action is commonly used in
Amiga applications for allowing the user to click on a button, change
their mind, and remove the mouse pointer before releasing the mouse
button; thus avoiding the button's action. You will be using the
Release action for this button.
If you have not done so already, click on your button. When the
Button Editor appears, click on the Release button under Scripts.
See Picture "Images/Release"
This will bring up the Script Editor. At this point you could
type in the instructions to print a text message on the screen.
However, CanDo has some tools to help you write scripts for some
common activities. These tools are called Editor Tools (not all of
CanDo's Editor Tools have been included in the Test Drive). Along the
right edge of the Script Editor are four Editor Tool Icons. Using the
Slider, on the far right, you can find additional Editor Tool Icons.
Using the Editor Tool Slider, locate the Print Text Editor Tool
Icon and click on it.
See Picture "Images/Text_ET_Icon"
The Print Text Requester will appear. Click on the "Set Text and
Font..." button.
See Picture "Images/SetTextAndFont"
This will bring up the Font/Text Requester. Enter "The Button Got
Clicked!" into the Text Field and press Return. Notice the example
text on your window. This is what the text will look like when it is
printed. Click on the Outlined Button.
See Picture "Images/Outlined"
Click the Ok Button. This will return you to the Print Text
Requester. Now, click the "Set Position..." button.
See Picture "Images/SetPosition"
The Script Editor will disappear allowing you to position a
rectangle the size and shape of your text message. Position the box
to the right of your button near 350,50. These coordinate numbers
will tag along with your mouse pointer. Click and release the mouse
pointer when it is properly positioned. This will return you to the
Print Text Requester. You can